// run: $exec < input
#include <iostream>
#include <string>
#include <vector>

int n;

int main()
{
	std::ios::sync_with_stdio(false);
	std::string s;
	std::cin >> s;
	auto a = s.substr(0, s.find('e'));
	auto sb = s.substr(s.find('e') + 1);
	auto ts = a.substr(s.find('.') + 1);
	bool tail = false;
	if (ts == std::string(ts.size(), '0')) {
		tail = true;
		if (s[0] == '0') {
			std::cout << "0\n";
			return 0;
		}
	}
	int b = std::stoi(sb);
	int len = a.size();
	if (b < len - 2) {
		for (int i = 1; i <= b; i++)
			a[i] = a[i + 1];
		a[b + 1] = '.';
		while (a[0] == '0' && a.size() > 1 && a[1] != '.') a.erase(a.begin());
		if (tail) a.erase(a.find('.'));
		std::cout << a << "\n";
	} else {
		std::string zero(b - len + 2, '0');
		a.erase(s.find('.') + a.begin());
		a += zero;
		while (a[0] == '0' && a.size() > 1 && a[1] != '.') a.erase(a.begin());
		std::cout << a << "\n";
	}
}

